﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using UIDesigner.DesignContainers.Bases;

namespace UIDesigner.SurfaceProperties
{
    [Serializable()]
    public class FormSurfaceProperties : SurfacePropertiesBase
    {
        public FormSurfaceProperties() : base(null)
        {
        }

        public FormSurfaceProperties(IBaseObjectControl objTargetComponent) : base(objTargetComponent)
        {
        }

        private Form TargetControl
        {
            get
            {
                return TargetComponent as Form;
            }
        }

        public override string Target
        {
            get 
            {
                return this.TargetControl.Name; 
            }
        }

        protected override SurfaceType SurfaceType
        {
            get 
            {
                return SurfaceType.Form;
            }
        }

        public override object Clone()
        {
            FormSurfaceProperties objProperties = new FormSurfaceProperties(null);

            this.CopyTo(objProperties);

            return objProperties;
        }
    }
}
